package com.gzh.core.chche.service.dto;

import com.gzh.core.chche.dao.po.TschoolEntityCache;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @Author guanzh
 * @Date 2022/1/4 14:52
 * @Description
 */
@Setter
@Getter
@NoArgsConstructor
public class School {
    //学校id
    private Integer schoolId;
    //学校名字
    private String schoolName;
    //学校代码
    private String schoolCode;
    //所属
    private String competentAuth;
    //地点
    private String location;
    //学校等级
    private Integer schoolLevel;
    //公办民办
    private Integer isPrivate;

    public School(TschoolEntityCache item) {
        this.schoolId = item.getSchoolId();
        this.schoolName = item.getSchoolName();
        this.schoolCode = item.getSchoolCode();
        this.competentAuth = item.getCompetentAuth();
        this.location = item.getLocation();
        this.schoolLevel = item.getSchoolLevel();
        this.isPrivate = item.getIsPrivate();
    }
}
